// 新品推荐页面交互逻辑
document.addEventListener('DOMContentLoaded', () => {
    const filterGroups = document.querySelectorAll('.filter-group select');
    
    filterGroups.forEach(select => {
        select.addEventListener('change', (e) => {
            // 在这里可以添加筛选游戏的逻辑
            console.log(`筛选条件变更：${e.target.value}`);
        });
    });

    const gameCards = document.querySelectorAll('.game-card');
    
    gameCards.forEach(card => {
        const actionButtons = card.querySelectorAll('.game-actions button');
        
        actionButtons.forEach(btn => {
            btn.addEventListener('click', (e) => {
                const gameTitle = card.querySelector('h3').textContent;
                const actionType = e.target.textContent;
                console.log(`游戏：${gameTitle}，操作：${actionType}`);
            });
        });
    });
});
